<template>
  <div class="component_wrap">
    <LssAddress :options="options" v-model="selectAreaValue" :show-all-levels="false" />
    <div class="val-txt">选中的值：{{ selectAreaValue }}</div>
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const selectAreaValue = ref([])

const options = ref([
  // 你的选项数据
  { label: '北京市', value: '1000', children: [{ label: '北京市', value: '1001', children: [] }] },
  {
    label: '广东省',
    value: '2000',
    children: [{ label: '深圳市', value: '2001', children: [{ label: '南山区', value: '2003' }] }]
  }
])
</script>
